import request from "@/utils/request"
// 封装一个发推荐歌单的请求
export const recommendAPI = (params) => {
  return request({
    // 返回的是promise对象
    // 这样的话，调用者想怎么写.then就怎么写.then
    url: "/personalized?sb=" + Date.now(),
    params,
  })
}

//封装更新列表
export const newList = (params) => {
  return request({
    url: "/personalized/newsong?sb=" + Date.now(),
    params,
  })
}
